// 库存管理接口
import request from "@/common/request.js";
const api = {
  annunciate: "/annunciate/",
  an_classify: "/annunciate_classify/",
  staff: "/staff/",
};

const acAnnunciateApi = {
  get_staff(params) {
      return request({
        url: api.staff,
        method: "get",
        params,
      });
    },
  get_an_classify(params) {
    return request({
      url: api.an_classify,
      method: "get",
      params,
    });
  },
  get_annunciate(params) {
    return request({
      url: api.annunciate,
      method: "get",
      params,
    });
  },

  annunciate_detail(id) {
    return request({
      url: api.annunciate + id,
      method: "get",
    });
  },

  post_annunciate(data) {
    return request({
      url: api.annunciate,
      method: "post",
      data,
    });
  },

  patch_annunciate(data, id) {
    return request({
      url: api.annunciate + id + "/",
      method: "patch",
      data,
    });
  },

  delete_annunciate(id) {
    return request({
      url: api.annunciate + id + "/",
      method: "delete",
    });
  },
};
export default acAnnunciateApi;
